//
//  Layer_Creatures.h
//  Return Of The Lemi
//
//  Created by Paul Vishayanuroj on 11/1/09.
//  Copyright 2009 Cornell University. All rights reserved.
//

#import "cocos2d.h"
#import "chipmunk.h"
#import "Player.h"
#import "Meerkat.h"
#import "Constants.h"
#import "Kumquat.h"
#import "Pebble.h"
#import "KumquatExplosion.h"

@interface Layer_Creatures : Layer 
{
	Player *player;
	NSMutableArray *enemies;
	NSMutableArray *munitions;
	
	cpSpace *space;
	
	CGPoint touchStart; // Stores the initial touch location 
	CGPoint touchEnd;  // Stores the end touch location
	
	Meerkat *meerkat;
}

@property (nonatomic, readonly) Player *player;
@property (nonatomic, readonly) NSMutableArray *enemies;
@property (nonatomic, readonly) NSMutableArray *munitions;

- (void) SetupSpace;
- (void) Update;
- (void) fireMunition:(MunitionType)type position:(CGPoint)startPos;
- (void) PlayerWalkRight: (id)sender;
- (void) PlayerWalkLeft: (id)sender;
- (void) PlayerStand: (id)sender;
- (void) PlayerSpin: (id)sender;
- (void) PlayerDoNothing: (id)sender;

- (void) RemoveKumquat:(Kumquat *)kumquat;
- (void) createExplosion:(CGPoint)position;

void UpdateShape(void * ptr, void * unused);

@end
